home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20041116-20060924
/
000009_fdc@columbia.edu_Tue Nov 23 15:13:30 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Newbie question for telnet sessions
Date: 23 Nov 2004 20:13:19 GMT
Organization: Columbia University
Lines: 60
Message-ID: <slrncq76ev.fi0.fdc@sesame.cc.columbia.edu>
References: <AwIod.98318$Tq1.57885@bignews1.bellsouth.net> <1101230534.894105.269980@c13g2000cwb.googlegroups.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1101240799 20178 128.59.59.56 (23 Nov 2004 20:13:19 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 23 Nov 2004 20:13:19 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15238
On 2004-11-23, Mark Sapiro <slash_dev_slash_null_2000@yahoo.com> wrote:
:
: Nick Leachman wrote:
:> The one item I can't find in the docs though is how to stop the whole
:> session window from closing after a telnet session is expired by a router
:> timeout. I would like the window to stay open with all of the received
:> output from the session still available for copy, etc.
:
: What you want is the command
:
: set exit on-disconnect off
:
: You can issue this command in your login script if you're using the
: dialer or in one of the k95site.ini or k95custom.ini files.
:
That's not exactly it. It prevents Kermit 95 from terminating, but not
from returning to its command screen, which always happens automatically
whenever a network connection closes (or a serial connection loses the
Carrier signal and CARRIER-WATCH is not OFF).
You can go back and visit a closed session in read-only mode with the
VIEW command. In this mode, your status line says VIEW ONLY on the right,
and any keystrokes that would send data to the host are ignored, but you
can still scroll the session back, print the screen, copy with the mouse,
or save the scrollback buffer to a file.
Should you wish Kermit to remain in its terminal screen after a network
connection is broken, automatically switching to VIEW mode, you could use
a little script like this:
set host somehost.com
if fail stop 1 "Can't creat session"
while true {
connect
if not open connection {
view
break
}
}
The only problem with this is that you can't escape back during a session
and give commands at the prompt. In case you need to do that too:
set host somehost.com
if fail stop 1 "Can't creat session"
while true {
connect
if not open connection {
view
break
} else {
prompt
}
}
The PROMPT command enters a kind of "subshell" (an inferior command level).
To return to the script (i.e. to the CONNECT loop), you would type "end"
instead of "connect".
- Frank